package com.fz.us.admin.base.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类 -  Redis 基类
 * ============================================================================
 * 版权所有 2016 。
 *
 * @author fallenpanda
 * @version 1.0 2016-07-13 。
 * ============================================================================
 */
public class RedisEntity implements Serializable {

    private static final long serialVersionUID = 8575871466553614389L;

    public RedisEntity(){
    }

    public RedisEntity(Serializable key, String value){
        this.key = key;
        this.value = value;
    }

    /**
     * ID
     */
    protected String id;
    /**
     * 创建时间
     */
    protected Date createTime;
    /**
     * 修改时间
     */
    protected Date modifyTime;
    /**
     * 创建时间戳
     */
    protected String timestamp;
    /**
     * key
     */
    protected Serializable key;
    /**
     * value
     */
    protected String value;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public Serializable getKey() {
        return key;
    }

    public void setKey(Serializable key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
